package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksOrderDO;
import com.starlink.model.request.MallBooksOrderRequest;
import com.starlink.model.vo.MallBooksOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksOrderDtoMapper {

    MallBooksOrderDtoMapper INSTANCE = Mappers.getMapper(MallBooksOrderDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksOrderDO
    * @return
    */
    MallBooksOrderVO do2VO(MallBooksOrderDO mallBooksOrderDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksOrderDO request2DO(MallBooksOrderRequest request);
}
